/* banner首屏样式 */
.banner{
    width: 100%;
}
.banner-c{
    width: 1200px;
    height: 300px;
    margin: 0 auto;
    background: url('http://www.bufantec.com/site/jianshe/pages/project/static/img/banner.jpg') no-repeat center;
    
}

/* 项目部分样式 */
.pro{
    width: 100%;
}
.pro-c{
    width: 1200px;
    margin: 0 auto;
}
/* 所在位置 样式 */
.pro-c .title{
    width: 100%;
    padding-top: 50px;
    padding-bottom: 70px;
}
.pro-c .title .address{
    float: left;
}

/* 标题右 导航 样式 */
.pro-c .pro-nav{
    width:fit-content;
    float: right;
}
.pro-nav .pro-nav-item{
    float: left;
    font-size: 14px;
    width: 97px;
    height: 16px;
    line-height: 16px;
    text-align: center;    
}
/* 导航间竖线样式 */
.pro-nav .line{
    /* 要设置跟随线float 不然li.line会换行 */
    float: left;
    width: 1px;
    height: 8px;
    background-color: #767676;
    margin-top: 5px;
}


/* 项目导航跟随线样式 */
.pro-nav .pro-nav-item::after{
    display: block;
    content: '';
    width: 12px;
    height: 1px;
    margin: 0 auto;
    margin-top: 3px;
    background-color: #668aca;
    opacity: 0;
}

/* hover状态 */
.pro-nav .pro-nav-item:hover a{
    font-size: 16px;
    color: #668aca;
}
.pro-nav .pro-nav-item:hover::after{
    opacity: 1;
}

/* active部分高亮 */
.pro-nav .pro-nav-item.active a{
    font-size: 16px;
    color: #668aca;
}
.pro-nav .pro-nav-item.active::after{
    opacity: 1;
}


/* 项目卡片样式 */
.pro-card{
    width: 100%;
}
.pro-card .card-item{
    overflow: hidden;
    position: relative;
    float: left;
    width: 360px;
    height: 270px;
    margin-right: 60px;
    margin-bottom: 21px;
}
.card-item .bg{
    width: 100%;
    height: 180px;  
}
/* 卡片背景 */
/* 设置宽高时要设置到img 仅仅设置到.bg的话 对图片大小起不到约束作用 */
.card-item .bg .initial{
    width: 100%;
    height: 180px;
    border-radius: 8px;
    display: block;
}
.card-item .bg .active{
    width: 100%;
    height: 270px;
    border-radius: 8px;
    display: none;
}
.card-item .card-info{
    position: relative;
    display: block;
    width: 260px;
    height: 36px;
    margin: 0 auto;
    margin-top: 30px;
    margin-bottom: 24px;
}
.card-item .card-info .card-title{
    font-size: 14px;
    height: 14px;
    line-height: 14px;  
    margin-bottom: 7px;
}
.card-item .card-info .card-desc{
    font-size: 12px;
    height: 13px;
    line-height: 13px;
}
.card-item .card-info .arr{
    position: absolute;
    right: 0;
    bottom: 2px;
    width: 30px;
    height: 30px;
    background: url('../img/arr.png');
}
/* 项目遮罩层样式 */
.card-item .mask{
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 270px;
    border-radius: 8px;
    background-color:rgba(0,0,0,.5);
    color: #ffffff;
    opacity: 0;
    transform: translateY(-100%);
    transition: .4s;
}
.card-item .mask-arr{
    position: absolute;
    right: 50px;
    bottom: 60px;
    width: 30px;
    height: 30px;
    background: url('../img/mask-arr.png') no-repeat center;
    background-size: contain;
}
.card-item .mask-c{
    margin-left: 50px;
}
.card-item .mask .mask-title{
    font-size: 14px;
    height: 15px;
    line-height: 15px;
    margin-top: 58px;
}
.card-item .mask .mask-desc{
    font-size: 12px;
    height: 12px;
    line-height: 12px;
    margin-top: 4px;
}
.card-item .mask .mask-info{
    font-size: 12px;
    height: 12px;
    line-height: 22px;
    margin-top: 14px;

}
/* hover状态 */
.card-item:hover .bg{
    width: 100%;
    height: 100%;
}
.card-item:hover .initial{
    display: none;
}
.card-item:hover .card-info{
    display: none;
}
.card-item:hover .active{
    display: block;
}
.card-item:hover .mask{
    opacity: 1;
    transform: translateY(0);
}
